<%--
  Created by IntelliJ IDEA.
  User: nnxy
  Date: 2022/6/8
  Time: 11:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>

<head>
    <title>文件上传</title>
    <style>
        a{
            text-decoration:none
        }
        body {
            background-color: rgb(169, 169, 169);
        }

        #up {
            display: table-cell;
            width: 50%;
            height: 50%;
            overflow: auto;
            margin: auto;
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            background-color: rgb(194, 194, 194);
            border: 4px solid rgb(41, 41, 41);
            border-radius: 20px;
        }

        #upfile {
            position: relative;
            top: 30px;
            left: 30px;
            background-color: rgb(119, 119, 119);
            border: 4px solid rgb(93, 93, 93);
            color: #0a0a0a;
            border-radius: 20px;
            font-size: 40px;
        }



        #upbutt {
            position: relative;
            top: -40px;
            left: 815px;
            background-color: rgb(25, 25, 25);
            border: 4px solid rgb(158, 158, 158);
            border-radius: 20px;
            font-size: 50px;
            color: rgb(226, 226, 226);

        }

        #filemsg {
            position: relative;
            top: -19px;
            left: 183px;
            background-color: rgb(227 227 227);
            border: 2px solid rgb(158, 158, 158);
            border-radius: 10px;
            font-size: 42px;
            color: rgb(28 171 56);
        }
        #a{
            position: relative;
            top: -18px;
            left: -155px;
            background-color: rgb(239 239 239);
            border: 4px solid rgb(158, 158, 158);
            border-radius: 21px;
            font-size: 43px;
            color: rgb(102 102 102);
        }
    </style>
</head>

<body>
<form action="resource" method="post" enctype="multipart/form-data" id="up">

    <input type="file" name="file1" id="upfile">
    <br>
    <input type="submit" value="上传" id="upbutt">
    <br>
    <span id="filemsg">
        ${empty fileMsg ? "" : fileMsg}
    </span>
    <a href="main.jsp" id="a"> < 返回</a>
</form>

</body>

</html>